﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000DA RID: 218
	internal class Ext8Header : IExtHeaderDecoder
	{
		// Token: 0x06000331 RID: 817 RVA: 0x0000C2BF File Offset: 0x0000A6BF
		private Ext8Header()
		{
		}

		// Token: 0x06000332 RID: 818 RVA: 0x0000C2C8 File Offset: 0x0000A6C8
		public ExtensionHeader Read(byte[] bytes, int offset, out int readSize)
		{
			byte length = bytes[offset + 1];
			sbyte typeCode = (sbyte)bytes[offset + 2];
			readSize = 3;
			return new ExtensionHeader(typeCode, (uint)length);
		}

		// Token: 0x040000F5 RID: 245
		internal static readonly IExtHeaderDecoder Instance = new Ext8Header();
	}
}
